<template>
  <div class="box-index">
    <!-- top下方 -->
    <div class="dier_buwei">
      <img class="GGO" src="../assets/image/0.jpg" alt="">
      <div class="buju">
        <div class="search-container" @click="$router.push('/sousuo')">
          <div class="input">
            不是我的人生
          </div>
          <button>
            <img src="../assets/image/sousuo.png" alt="搜索">
          </button>
        </div>
      </div>
    </div>
    <!-- 小说内容 -->
    <div class="ThisWeek">
      <!-- 左边 -->
      <div class="left_Week">
        <p class="week_tilte">本周强推</p>
        <ul class="zhudao_To">
          <li class="text_jieshao" v-for="(item, index) in assembleList.one" :key="index" @click="Xiangqiu(item.id)">
            <span>{{item.content}}</span>
            <span>{{item.sort[0]}}</span>
          </li>
        </ul>
      </div>
      <!-- 中间 -->
      <div class="woke_zhong">
        <!-- 上 书籍 -->
        <div class="BooksliList">
          <div class="books_box" v-for="(item, index) in assembleList.two" :key="index"  @click="Xiangqiu(item.id)">
            <div class="FengImg">
              <img class="jiashu_img" src="../assets/image/jia_shu.png" alt="">
              <img class="shu_pi" :src="item.image" alt="">
            </div>
            <p class="books_tilte">{{ item.content }}</p>
            <p class="books_jianjie">{{ item.contents }}</p>
          </div>
        </div>
        <!-- 精选 -->
        <div class="JingXuan_ti">
          <div class="jingxuanBooks">新作精选</div>
          <div class="Jx_text_shuji">
            <p class="" v-for="(item,index) in assembleList.three" :key="index" @click="Xiangqiu(item.id)"> 
              <span>{{item.content}}</span>
            </p>
            
          </div>
        </div>
      </div>
      <!-- 右边 -->
      <div class="right_dongtai">
        <!-- 编辑力荐 -->
        <div class="Tuijian"  @click="Xiangqiu(assembleList.four[0].id)">
          <p class="tlit_o">编辑力荐</p>
          <p class="T_jianjie">{{ assembleList.four[0].content }}</p>
          <p class="T_tilte">《{{ assembleList.four[0].title}}》</p>
        </div>
        <!-- 广告位置 -->
        <a href="https://tp.9377s.com/1193624/?yyad_type=360ps&jzqs=198171&sid=new&qhclickid=d3faf7cfcfd56c41" target="_blank">
          <img class="ip_img" src="../assets/image/bianjitu.jpg" alt="">
        </a>
        <a href="https://game.tg.99947.com/tcg7_6060_43?qhclickid=553af7955882d67f"  target="_blank">
          <img class="io_img" src="../assets/image/gg2.jpg" alt="" >
        </a>
        
        
      </div>
    </div>
    <!-- 奇幻新书 -->
    <div class="huan_Books">
      <!-- left -->
      <div class="L_noe">
        <p class="qh_shu">奇幻新作</p>
        <div class="NeiRong_shuji" v-for="(itemt,index) in secondrow.five" :key="index">
          <div class="qidian_kj" v-for="(item,index) in secondrow.five[index]" :key="index"  @click="Xiangqiu(item.id)">
            <div class="sj_fm">
              <img :src="item.image" alt="">
            </div>
            <div class="right_To">
              <p>{{item.title}}</p>
              <p>{{item.contents}}</p>
              <div class="xini_nei">
                <div class="zuozhe_name">
                  <img src="../assets/image/user.png" alt="">
                  <span>{{item.author}}</span>
                </div>
                <div class="shen_mi">
                  {{ item.sort[0] }}
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- right -->
      <div class="r_qianyue">
        <p class="qh_shu">畅销新作榜</p>
        <!-- 排行榜 -->
        <div class="ranking">
          <div class="rk_r"  @click="Xiangqiu(secondrow.seven[0].id)">
            <p>NO.1</p>
            <p>{{secondrow.seven[0].title}}</p>
            <p>本周最强</p>
            <p>{{secondrow.seven[0].sort[0]}}</p>
          </div>
          <div class="rk_l">
            <div class="bock-cover">
              <img :src="secondrow.seven[0].image" alt="">
            </div>
          </div>
        </div>
        <!-- 同类排行 -->
        <div class="name-box" v-for="(item,index) in secondrow.six" :key="index"  @click="Xiangqiu(item.id)">
          <p>{{index+2}}</p>
          <div class="name-shuming">
            <div class="booke_name">{{item.content}}</div>
          </div>
        </div>
      </div>
    </div>
    <!-- 广告位 -->
    <a href="https://yshh.wan.360.cn/game_login.php?server_id=S294&src=dhhz-cubeicon3-yshh" target="_blank">
      <img class="GG-5" src="../assets/image/gg5.jpg" alt="">
    </a>
   
    <!-- 人气连载 -->
    <div class="renqi_box">
      <div class="L_noe"> 
        <p class="qh_shu">人气连载</p>
        <div class="L-Hou">
          <div class="xiao-L">
            <!-- 封面 -->
            <div class="rq_fm">
              <img :src="Thirdrow.eight[0].image" alt="">
            </div>
            <!-- 标题 -->
            <div class="rq_biaoti">
              <p>{{Thirdrow.eight[0].title}}</p>
              <p>{{Thirdrow.eight[0].author}}</p>
            </div>
            <!-- 简介 -->
            <p class="rq_jianjie">
              {{Thirdrow.eight[0].contents}}
            </p>
            <p class="books_shuji"  @click="Xiangqiu(Thirdrow.eight[0].id)">作品详情</p>
          </div>
          <div class="numerous-box">
            <!-- 樊书记 -->
            <div class="hengsan_ti">
              <div class="qidian_kj" v-for="(item,index) in Thirdrow.nine" :key="index" @click="Xiangqiu(item.id)">
                <div class="sj_fm">
                  <img :src="item.image" alt="">
                </div>
                <div class="right_To">
                  <p>{{item.title}}</p>
                  <p>{{item.content}}</p>
                  <div class="xini_nei">
                    <div class="zuozhe_name">
                      <img src="../assets/image/user.png" alt="">
                      <span>{{item.author}}</span>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <!-- 三行text -->
              <div class="text_kuang" >
                <div class="text_hang2" v-for="(item,index) in Thirdrow.ten" :key="index" @click="Xiangqiu(item.id)">
                  <p>{{item.content}}</p>
                  <p>{{item.contents}}</p>
                </div>
              </div>
          </div>
        </div>
        
      </div>
      <!-- right -->
      <div class="r_qianyue">
        <p class="qh_shu">作品更新榜</p>
        <!-- 排行榜 -->
        <div class="ranking">
          <div class="rk_r"  @click="Xiangqiu(Thirdrow.twelve[0].id)">
            <p>NO.1</p>
            <p>{{Thirdrow.twelve[0].title}}</p>
            <p>本周最强</p>
            <p>{{Thirdrow.twelve[0].sort[0]}}</p>
          </div>
          <div class="rk_l">
            <div class="bock-cover">
              <img :src="Thirdrow.twelve[0].image" alt="">
            </div>
          </div>
        </div>
        <!-- 同类排行 -->
        <div class="name-box" v-for="(item,index) in Thirdrow.eleven" :key="index"  @click="Xiangqiu(item.id)">
          <p>{{ index+2 }}</p>
          <div class="name-shuming">
            <div class="booke_name">{{item.content}}</div>
          </div>
        </div>
      </div>
    </div>
    
  </div>
</template>
<script>
import axios from 'axios';
export default {
  data() {
    return {
      assembleList: [],//本周强推
      secondrow:[], //第二行数据
      Thirdrow:[]//第三行数据
    }
  },
  mounted(){
    this.noePing();
  },
  //逻辑处理
  methods: {
    //第一屏
    noePing(){
      axios.post('/api/index/indexone')
      .then((res)=>{
        this.assembleList = res.data.diyipai[0];
        // console.log( this.assembleList )
      }).catch((err)=>{
        console.log(err)
      })
      axios.post('/api/index/indextwo')
      .then((res)=>{
        this.secondrow = res.data.dierpai[0];
        // console.log( this.secondrow )
      }).catch((err)=>{
        console.log(err)
      })
      axios.post('/api/index/indexthree')
      .then((res)=>{
        this.Thirdrow = res.data.disanpai[0];
        console.log( this.Thirdrow )
      }).catch((err)=>{
        console.log(err)
      })
      
    },
    //跳转详情页 
    Xiangqiu(id){
      this.$router.push('/bookDetails/' + id);
    }
  }

}
</script>
<style scoped lang="scss">
.box-index {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;

  // top
  .dier_buwei {
    width: 100%;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    .GGO {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
    }

    .buju {
      max-width: 1200px;
      width: 1200px;
      height: 100%;
      // background-color: #3543dc;
      display: flex;
      align-items: center;
      justify-content: center;
      position: absolute;
      z-index: 1;

      .search-container {
        width: 500px;
        overflow: hidden;
        height: 37px;
        display: flex;
        align-items: center;
        justify-content: center;

        .input {
          width: 60%;
          height: 100%;
          background-color: #fff;
          padding-left: 15px;
          outline: none;
          display: flex;
          align-items: center;
          font-size: 13px;
          cursor: pointer;
          color: #414141;
        }

        button {
          height: 100%;
          background-color: #dc3545;
          border: 1px #dc3545 solid;
          color: white;
          border: none;
          padding: 8px 15px;
          cursor: pointer;

          img {
            width: 20px;
            height: 20px;
          }
        }
      }
    }
  }

  //小说 本周
  .ThisWeek {
    max-width: 1200px;
    width: 1200px;
    height: 400px;
    border-top: solid 1px #000;
    margin-top: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;

    // 左边力荐
    .left_Week {
      flex: 1;
      width: 210px;
      height: 100%;
      padding: 0 10px;
      background-color: #f9f9ff;

      .week_tilte {
        text-align: center;
        font-weight: 700;
        font-size: 18px;
        margin-top: 7%;
      }

      .zhudao_To {
        margin-top: 5%;

        .text_jieshao {
          border-bottom: solid 1px #dedede;
          padding: 6px 3px;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: space-between;

          span:nth-child(1) {
            width: 70%;
            color: #989898;
            font-size: 15px;
            font-weight: 400;
            color: #2d2d2d;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;

          }

          span:nth-child(2) {
            width: 30%;
            color: #989898;
            font-size: 14px;
            font-weight: 400;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
        .text_jieshao:last-child{
          border: none;
        }
      }
    }

    // 中间
    .woke_zhong {
      width: 750px;
      height: 100%;
      background-color: #f9f9ff;
      margin: 0px 10px;
      display: flex;
      flex-direction: column;
      align-items: center;

      //上
      .BooksliList {
        width: 95%;
        padding: 35px 0;
        border-bottom: solid 1px #d8d8d8;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .books_box {
          width: 140px;
          // background-color: aquamarine;
          display: flex;
          flex-direction: column;
          align-items: center;

          .FengImg {
            width: 115px;
            height: 145px;
            background-color: #893030;
            position: relative;
            overflow: hidden;

            .jiashu_img {
              position: absolute;
              z-index: 1;
              width: 100%;
              height: 100%
            }

            .shu_pi {
              width: 92%;
              height: 100%;
              top: 3%;
              position: absolute;
              z-index: 3;
              cursor: pointer;
              transition: 0.2s;
              transform-origin: 0% 100%;
              transform: rotateY(0deg);
              object-fit: cover;
            }
          }

          .FengImg:hover .shu_pi {
            transition: 0.2s;
            transform-origin: 0% 100%;
            transform: rotateY(22deg);
          }

          .books_tilte {
            width: 90%;
            font-size: 15px;
            font-weight: 800;
            margin-top: 15%;
            cursor: pointer;
            color: #505050;
            overflow: hidden;
            /* 不让文本换行 除非遇到br标签 */
            white-space:nowrap;
            /* 溢出文字用...代替 */
            text-overflow: ellipsis;
          }

          .books_jianjie {
            width: 90%;
            font-size: 14px;
            margin-top: 5%;
            color: #2d2d2d;
            cursor: pointer;
            overflow: hidden;
            /* 不让文本换行 除非遇到br标签 */
            white-space:nowrap;
            /* 溢出文字用...代替 */
            text-overflow: ellipsis;
          }
        }
      }

      //下
      .JingXuan_ti {
        width: 95%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        // background-color: #893030;
        margin-top: 3%;

        .jingxuanBooks {
          width: 50px;
          font-size: 18px;
          color: #ffffff;
          padding: 0px 0px;
          text-align: center;
          background-color: rgb(237, 66, 89);
        }

        .Jx_text_shuji {
          max-width: 640px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          flex-wrap: wrap;

          p {
            width: 300px;
            font-size: 13px;
            overflow: hidden;
            /* 不让文本换行 除非遇到br标签 */
            white-space: nowrap;
            /* 溢出文字用...代替 */
            text-overflow: ellipsis;
            margin: 10px 0px;
            color: #989898;
            cursor: pointer;

            span:nth-child(1) {
              color: #2d2d2d;
              font-size: 15px;
            }
          }
        }
      }
    }

    // 右边力荐
    .right_dongtai {
      flex: 1;
      height: 100%;
      width: 100px;
      background-color: #f9f9ff;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .Tuijian {
        margin: 12px 12px;
        display: flex;
        flex-direction: column;
        margin-top: 3%;
        border-bottom: solid 1px #989898;
        padding-bottom: 10%;
        margin-bottom: 5%;
        margin-top: 10%;
        cursor: pointer;

        .tlit_o {
          width: 60px;
          color: #ffffff;
          background-color: #dd2c2c;
          text-align: center;
          font-size: 12px;
          padding: 2px 0px;
        }

        .T_jianjie {
          color: #2d2d2d;
          font-size: 13px;
          overflow: hidden;
          /* 不让文本换行 除非遇到br标签 */
          white-space: nowrap;
          /* 溢出文字用...代替 */
          text-overflow: ellipsis;
          margin-top: 5%;
        }

        .T_tilte {
          font-size: 12px;
          color: #004177;
          margin-top: 3%;
        }
      }

      .ip_img {
        margin-top: 3%;
      }

      .io_img {
        margin-top: 5%;
      }
    }
  }

  //奇幻新书
  .huan_Books {
    max-width: 1200px;
    width: 1200px;
    height: 440px;
    // background-color: #893030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-top: 2%;

    .L_noe {
      flex: 1;
      height: 100%;

      .qh_shu {
        font-size: 20px;
        font-weight: 600;
        // border-bottom: solid 1px #2d2d2d;
        padding-bottom: 12px;
        height: 20px;
      }
      //层级
      .NeiRong_shuji {
        height: 138px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: solid 1px #9b9b9b;
        //单框
        .qidian_kj {
          width: 300px;
          height: 100px;
          // background-color: #893030;
          display: flex;
          align-items: center;
          justify-content: space-between;
          //书记封面
          .sj_fm{
            width: 75px;
            height: 100px;
            box-shadow: 0 0 5px 0 #2d2d2d;
            cursor: pointer;
            img{
              width: 100%;
              height: 100%;
              object-fit: cover;
            }
          }
          //右边信息
          .right_To{
            flex: 1;
            margin-left: 15px;
            height: 100px;
            overflow: hidden;
            p:nth-child(1){
              font-size: 17px;
              color: #000;
              margin-bottom: 2%;
              cursor: pointer;
            }
             p:nth-child(2){
              font-size: 13px;
              color: #636363;
              word-break: break-all;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2; /* 超出几行省略 */
              overflow: hidden;
              margin-bottom: 10px;
            }
            //作品信息以及作者
            .xini_nei{
              display: flex;
              align-items: center;
              justify-content: space-between;
              .zuozhe_name{
                width: 50%;
                display: flex;
                align-items: center;
                img{
                  width: 15px;
                }
                span{
                  font-size: 12px;
                  color: #949494;
                  margin-left: 3%;
                  cursor: pointer;
                }
                span:hover{
                  font-size: 12px;
                  color: #000000;
                  margin-left: 3%;
                }
              } 
              .shen_mi{
                padding: 0px 5px;
                font-size: 12px;
                color: #949494;
                border: solid 1px #cdcdcd;
                cursor: pointer;
                max-width: 100px;
                 /* 溢出隐藏 */
                overflow: hidden;
                /* 不让文本换行 除非遇到br标签 */
                white-space:nowrap;
                /* 溢出文字用...代替 */
                text-overflow: ellipsis;
              }
            }

          }
        }
      }
    }
    
  }
  //公用右边排行
    .r_qianyue {
      width: 220px;
      height: 100%;
      margin-left: 20px;
      .qh_shu {
        font-size: 16px;
        border-bottom: solid 1px #888888;
        height: 20px;
        padding-bottom: 12px;
      }
      //排行
      .ranking{
        height: 95px;
        margin-top: 20px;
        display: flex;
        justify-content: space-between;
        margin-bottom: 4%;
        .rk_r{
          width: 60%;
          overflow: hidden;
          display: flex;
          flex-direction: column;
          p:nth-child(1){
            color: #fff;
            font: 700 14px / 18px Arial;
            height: 18px;
            margin-bottom: 3%;
            text-align: center;
            width: 36px;
            padding: 1% 2%;
            background-color: #dd2c2c;
            color: #fff;
          }
          p:nth-child(2){
            font-size: 16px;
            color: #2a2a2a;
            overflow: hidden;
            /* 不让文本换行 除非遇到br标签 */
            white-space:nowrap;
            /* 溢出文字用...代替 */
            text-overflow: ellipsis;
            margin-bottom: 3%;
          }
          p:nth-child(3){
            font-size: 16px;
            color: #dd2c2c;
            overflow: hidden;
            /* 不让文本换行 除非遇到br标签 */
            white-space:nowrap;
            /* 溢出文字用...代替 */
            text-overflow: ellipsis;
            margin-bottom: 3%;
          }
          p:nth-child(4){
            color: #949494;
            font-size: 12px;
          }
          
        }
        //书侧转
        .rk_l{
          flex: 1;
          margin-left: 2%;
          display: flex;
          align-items: center;
          justify-content: center;
          .bock-cover{
            cursor: pointer;
            position: relative;
            text-align: center;
            width: 55px;
            z-index: 4;
            width: 60px;
            img{
              width: 60px;
              height: 90px;
              object-fit: cover;
              transform: perspective(80px) rotateY(-10deg);
            }
          }
          .bock-cover:after{
            background-color: #efefef;
            box-shadow: inset 0 0 5px #333;
            content: " ";
            height: 99%;
            left: 100%;
            position: absolute;
            -webkit-transform: perspective(70px) rotateY(30deg);
            -moz-transform: perspective(70px) rotateY(30deg);
            transform: perspective(70px) rotateY(30deg);
            width: 12%;
            z-index: 2;
            top: -2px;
          }
          
        }
      }
      //排行
      .name-box{
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 30px;
        cursor: pointer;
        margin: top 5px;
        p:nth-child(1){
          padding: 0px 6px;
          color: #fff;
          font-weight: bold;
          font-size: 13px;
          background-color: #893030;
        }
        .name-shuming{
          width: 85%;
          height: 100%;
          border-top: solid 1px #ccc;
          font-size: 13px;
          color: #636363;
          display: flex;
          align-items: center;
          justify-content: space-between;
          .booke_name{
            font-size: 4;
            color: #2d2d2d;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
      }
    }
  // gg5
  .GG-5{
    margin: 2% 0;
  }
  // 人气连载
  .renqi_box{
    max-width: 1200px;
    width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2%;
    .L_noe {
      flex: 1;
      height: 100%;
      .qh_shu {
        font-size: 20px;
        font-weight: 600;
        border-bottom: solid 1px #888888;
        padding-bottom: 12px;
        height: 20px;
      }
      // 分开两个
      .L-Hou{
        height: 100%;
        display: flex;
        // align-items: center;
        justify-content: space-between;
        .xiao-L{
          width: 216px;
          overflow: hidden;
          display: flex;
          flex-direction: column;
          background-color: rgb(247,245,240);
          align-items: center;
          .rq_fm{
             cursor: pointer;
            position: relative;
            text-align: center;
            z-index: 4;
            width: 100px;
            margin-top: 20px;
            box-shadow: #000 0 0 0 0;
            img{
              width: 98px;
              height: 142px;
               transform: perspective(300px) rotateY(-10deg);
               object-fit: cover;
            }
          }
          .rq_fm:after{
            // background-color: #efefef;
            box-shadow: inset 0 0 5px #333;
            content: " ";
            height: 95%;
            left: 100%;
            position: absolute;
            -webkit-transform: perspective(70px) rotateY(30deg);
            -moz-transform: perspective(70px) rotateY(30deg);
            transform: perspective(70px) rotateY(30deg);
            width: 12%;
            z-index: 2;
            top: 2px;
          }
          //人气标题
          .rq_biaoti{
            text-align: center;
            margin-top: 20px;
            p:nth-child(1){
              width: 200px;
              font-size: 17px;
              font-weight: bold;
              overflow: hidden;
              /* 不让文本换行 除非遇到br标签 */
              white-space:nowrap;

              /* 溢出文字用...代替 */
              text-overflow: ellipsis;
            }
            p:nth-child(2){
              font-size: 14px;
              color: #b32323;
              margin-top: 2%;
            }
          }
          .rq_jianjie{
            // background-color: #004177;
            overflow: hidden;
            margin: 10px;
            text-align: center;
            font-size: 13px;
            color: #333;
            word-break: break-all;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            line-height: 20px;
            -webkit-line-clamp: 4; /* 超出几行省略 */
          }
          .books_shuji{
            padding: 6px 15px;
            color: #fff;
            background-color: #893030;
            border-radius: 50px;
            font-size: 15px;
            margin-top: 5%;
            cursor: pointer;
          }

        }
        .numerous-box{
          flex: 1;
          height: 100%;
          margin-left: 30px;
          .hengsan_ti{
            width: 100%;
            height: 140px;
            border-bottom: solid 1px #c7c7c7;
            display: flex;
            align-items: center;
            justify-content: space-between;
            //单框
            .qidian_kj {
              width: 220px;
              height: 100px;
              // background-color: #893030;
              display: flex;
              align-items: center;
              justify-content: space-between;
              //书记封面
              .sj_fm{
                width: 75px;
                height: 100px;
                box-shadow: 0 0 5px 0 #2d2d2d;
                cursor: pointer;
                img{
                  width: 100%;
                  height: 100%;
                  object-fit: cover;
                }
              }
              //右边信息
              .right_To{
                flex: 1;
                margin-left: 15px;
                height: 100px;
                overflow: hidden;
                p:nth-child(1){
                  font-size: 17px;
                  color: #000;
                  margin-bottom: 2%;
                  cursor: pointer;
                   overflow: hidden;
                  /* 不让文本换行 除非遇到br标签 */
                  white-space:nowrap;
                  /* 溢出文字用...代替 */
                  text-overflow: ellipsis;
                }
                p:nth-child(2){
                  font-size: 13px;
                  color: #636363;
                  word-break: break-all;
                  text-overflow: ellipsis;
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  -webkit-line-clamp: 2; /* 超出几行省略 */
                  overflow: hidden;
                  margin-bottom: 10px;
                }
                //作品信息以及作者
                .xini_nei{
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  .zuozhe_name{
                    width: 50%;
                    display: flex;
                    align-items: center;
                    img{
                      width: 15px;
                    }
                    span{
                      font-size: 12px;
                      color: #949494;
                      margin-left: 3%;
                      cursor: pointer;
                    }
                    span:hover{
                      font-size: 12px;
                      color: #000000;
                      margin-left: 3%;
                    }
                  } 
                  .shen_mi{
                    padding: 0px 5px;
                    font-size: 12px;
                    color: #949494;
                    border: solid 1px #cdcdcd;
                    cursor: pointer;
                  }
                }

              }
            }
          }

          //三体——text
            .text_kuang{
              display: flex;
              align-content: center;
              justify-content: space-between;
              flex-wrap: wrap;
              .text_hang2{
                padding-bottom: 9px;
                padding-top: 10px;
                cursor: pointer;
                width: 210px;
                p:nth-child(1){
                  font-size: 15px;
                  color:#000;  
                  /* 溢出隐藏 */
                  overflow: hidden;
                  /* 不让文本换行 除非遇到br标签 */
                  white-space:nowrap;
                  /* 溢出文字用...代替 */
                  text-overflow: ellipsis;
                }
                p:nth-child(2){
                  font-size: 13px;  
                  color:#636363;
                  margin-top:2%;
                   /* 溢出隐藏 */
                  overflow: hidden;
                  /* 不让文本换行 除非遇到br标签 */
                  white-space:nowrap;
                  /* 溢出文字用...代替 */
                  text-overflow: ellipsis;
                }
              }
            }
        }
      }
    }
  }
  // 热门分类
  .fenleiBooks{
    max-width: 1200px;
    width: 1200px;
    height: 410px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2%;
    .L_noe {
      flex: 1;
      height: 100%;
      .qh_shu {
        font-size: 20px;
        font-weight: 600;
        border-bottom: solid 1px #888888;
        padding-bottom: 12px;
        height: 20px;
      }
      .ai_shouye{
        .hot-categories {
          width: 100%;
          background: #fff;
          border-radius: 4px;
          box-shadow: 0 1px 3px rgba(0,0,0,0.1);
          padding: 15px;
          
          .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            
            h3 {
              font-size: 18px;
              color: #333;
              font-weight: bold;
            }
            
            .more-link {
              font-size: 14px;
              color: #999;
              text-decoration: none;
              
              &:hover {
                color: #f86464;
              }
            }
          }
          
          .category-list {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            
            .category-item {
              display: flex;
              align-items: center;
              padding: 10px;
              border-radius: 4px;
              transition: all 0.3s;
              cursor: pointer;
              
              &:hover {
                background: #f5f5f5;
              }
              
              .category-icon {
                width: 40px;
                height: 40px;
                margin-right: 10px;
                
                img {
                  width: 100%;
                  height: 100%;
                  object-fit: cover;
                }
              }
              
              .category-info {
                h4 {
                  font-size: 16px;
                  color: #333;
                  margin-bottom: 5px;
                }
                
                p {
                  font-size: 12px;
                  color: #999;
                }
              }
            }
          }
        }
        
      }
    }
  }
}
</style>